// const clearSaleListTpl = require('../views/clearSale/clearSale_list.html');

// document.querySelector('#contentItem').innerHTML = clearSaleListTpl;



import clearSaleListTpl from '../views/clearSale/clearSale_list.html';
import Http from '../model/http'
import http from '../model/http';

class ClearSaleList {
          constructor(){
                  //   console.log(http);
                    this.render();
          }
       async render(){
    
           let item = (await Http.clearSale()).goodsCate.list;
            // console.log(item);

         let html = template.render(clearSaleListTpl,{
            item

         })
     
            // console.log(document.querySelector('#saleBox'))
            document.querySelector('#saleBox').innerHTML = html;
        }
}



export default new  ClearSaleList();
